<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>read.html</h1>
    <script>
      // const xhr = new XMLHttpRequest();
      // xhr.open("GET", "http://127.0.0.1:8080");
      // xhr.withCredentials = true;
      // xhr.send();

      // 其他文件读取localStorage
      console.log(localStorage);
      console.log(localStorage.age);
      console.log(localStorage.username);
      console.log(localStorage.getItem("gender"));
    </script>
  </body>
</html>
